package com.andrew.pegSolitareEngine;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

public class AndroidPegSolitare extends Activity {
	private GameController gameController;
	/** Called when the activity is first created. */

	private Button mNumberOfHoles;
	private Button mListOfHoles;
	private ImageView mBoard;

	/*
	 * this is for the setup of the game and contains any options for the player
	 * to setup the game. When the start button is pressed, the board is
	 * created.
	 */
	@Override
	public void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_test);
		mNumberOfHoles = (Button) findViewById(R.id.numberOfHoles);
		mListOfHoles = (Button) findViewById(R.id.listOfHoles);
		mBoard = (ImageView) findViewById(R.drawable.board);
		
		gameController = new GameController(mNumberOfHoles,
				mListOfHoles, mBoard, getApplicationContext());
		gameController.startGame();
	}
}